package com.tebiecloud.base.server.mapper;

import com.tebiecloud.base.client.model.entity.BaseAuthorityApp;
import com.tebiecloud.common.mybatis.base.mapper.SuperMapper;
import com.tebiecloud.common.security.SecurityAuthority;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 系统权限-应用关联 Mapper 接口
 * @author tebie
 * @date 2019-08-08
 */
@Repository
public interface BaseAuthorityAppMapper extends SuperMapper<BaseAuthorityApp> {

    /**
     * 获取应用已授权权限
     * @param appId
     * @return
     */
    List<SecurityAuthority> selectSecurityAuthority(@Param("appId") String appId);

}
